﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Hybrid
{
    public partial class NetworkStart : Form
    {
        public NetworkStart()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            HostGame hg = new HostGame();
            hg.FormClosing += new FormClosingEventHandler(ChildFormClosing);
            hg.Show();
            this.Hide();
        }

        void ChildFormClosing(object sender, FormClosingEventArgs e)
        {
            this.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            JoinGame jg = new JoinGame();
            jg.FormClosing += new FormClosingEventHandler(ChildFormClosing);
            jg.Show();
            this.Hide();
        }
    }
}
